﻿using House.DTO;
using House.IService;
using House.Service.Entities;
using System.Collections.Generic;
using System.Linq;

namespace House.Service
{
    public class RoleService : BaseService<T_Roles>, IRoleService
    {
        public RoleService() : base(new Model())
        {
        }
        public List<RoleDTO> GetList()
        {
            return GetList(p => true).Select(p => new RoleDTO()
            {
                Id = p.Id,
                Name = p.Name
            }).ToList();

        }
    }
}
